﻿/*
 * Copyright (C) 2006 Chris Stefano
 *       cnjs@mweb.co.za
 */
using System;

namespace FRAFV.Binary.Serialization
{
	/// <summary>
	/// Custom Tool descriptor
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
	public class CustomToolAttribute : Attribute
	{
		/// <summary>
		/// Custom Tool descriptor
		/// </summary>
		/// <param name="name">Custom Tool Name</param>
		public CustomToolAttribute(string name) :
			this(name, "")
		{
		}

		/// <summary>
		/// Custom Tool descriptor
		/// </summary>
		/// <param name="name">Custom Tool Name</param>
		/// <param name="description">Custom Tool Description</param>
		public CustomToolAttribute(string name, string description)
		{
			this.Name = name;
			this.Description = description;
		}

		/// <summary>
		/// Custom Tool Name
		/// </summary>
		public string Name
		{
			get;
			private set;
		}

		/// <summary>
		/// Custom Tool Description
		/// </summary>
		public string Description
		{
			get;
			private set;
		}
	}
}
